<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.Date"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
	response.setHeader("Pragma", "no-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<title>搜索结果</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<c:import url="/inc/inc.html" charEncoding="UTF-8"></c:import>
		<link rel="stylesheet" type="text/css" href="/script/lib/jquery.pagination/pagination.css" media="all" />
	</head>
	<body>
		<c:import url="/inc/header.html" charEncoding="UTF-8"></c:import>
		<div id="pagecontent">
			<div class="page_container">
				<div id="main" class="cblock">
					<ul id="crumbs" class="border-radius_4px">
					    <li><a href="/">首页</a></li>
					    <li>搜索结果</li>
					</ul>
					
				    <c:if test="${pager.totalNum < 1}">
				    	<div class="box">
							<div class="noresult">抱歉，没有符合您条件的文章。</div>
						</div>
					</c:if>
					<c:forEach var="article" items="${pager.pageData}">
						<div class="article">
							<div class="art-t"><h2><a href="/article/show.do?rp.pageNo=1&rp.articleId=${article.id}">${article.title}</a></h2></div>
							<div class="art-d">
								生产于<span class="date"><fmt:formatDate value="${article.postTime}" pattern="yyyy年MM月dd日"/></span>
								分类
								[<a href="/category/list.do?rp.pageNo=1&rp.categoryId=${article.category}" class="specail-link">${article.categoryDesc}</a>]
								- [<a href="/artType/list.do?rp.pageNo=1&rp.artType=${article.artType}" class="specail-link">${article.artTypeDesc}</a>]
							</div>
							<div class="art-c">
								<c:if test="${!empty article.titlePic}"> 
								<div class="pic">
									<a href="/article/show.do?rp.pageNo=1&rp.articleId=${article.id}"><img src="${article.titlePic}" title="${article.title}"/></a>
								</div>
								</c:if>
								${article.memo}
							</div>
						</div>
					</c:forEach>
					<div class="articlePager">${pager.pageHtml}</div>
				</div>
				<div id="sidebar" class="cblock">
					<!-- 搜索输入框 -->
					<c:import url="/inc/searchBox.html" charEncoding="UTF-8"></c:import>
					<c:import url="/inc/topClickLastWeek.html" charEncoding="UTF-8"></c:import>
					<c:import url="/inc/topClick.html" charEncoding="UTF-8"></c:import>
				</div>
			</div>
		</div>
		<c:import url="/inc/footer.html" charEncoding="UTF-8"></c:import>
	</body>
</html>